const { encrypt } = require('../services/encrypt')
const User = require('../model/User')

async function updateUserTest() {
    for (let i = 0; i < 30; i++) {
        let id = i
        let password = 'asqw' + i
        let hash = encrypt(password)
        await User.update(
            { password: hash}, 
            {
                where: {
                    id: id
                }
            })
    }
}

module.exports = updateUserTest